import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../utils/color_utils.dart';

class AppThemes {

  ///简单配置 后续可以全面适配
  static get light => ThemeData(
    brightness: Brightness.light,
    cupertinoOverrideTheme:
    const CupertinoThemeData(brightness: Brightness.light),
    // highlightColor: const Color.fromRGBO(0, 0, 0, 0),
    // splashColor: const Color.fromRGBO(0, 0, 0, 0),
    primarySwatch: Colors.blue,
    visualDensity: VisualDensity.adaptivePlatformDensity,
    appBarTheme: GetPlatform.isIOS
        ? const AppBarTheme(brightness: Brightness.light)
        : null,
    scaffoldBackgroundColor: ThemeColors.clfff5f6f7,
    // buttonTheme: ButtonThemeData(
    //     splashColor: Colors.transparent,
    //     highlightColor: Colors.transparent,
    // ),
  );

  static get dark => ThemeData(
    brightness: Brightness.dark,
    cupertinoOverrideTheme:
    const CupertinoThemeData(brightness: Brightness.dark),
    // highlightColor: const Color.fromRGBO(0, 0, 0, 0),
    // splashColor: const Color.fromRGBO(0, 0, 0, 0),
    primarySwatch: Colors.blue,
    visualDensity: VisualDensity.adaptivePlatformDensity,
    appBarTheme: GetPlatform.isIOS
        ? const AppBarTheme(brightness: Brightness.dark)
        : null,
    scaffoldBackgroundColor: ThemeColors.clfff5f6f7,
  );

}